package cn.iocoder.yudao.module.shop.info.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "店铺服务费比例更新 Request VO")
@Data
public class ShopDiscountPercentUpdateReqVO {

    @Schema(description = "唯一编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "唯一编号不能为空")
    private Long id;

    @Schema(description = "顾客可抵扣百分比，范围为 0-100 之间的数字", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @NotNull(message = "顾客可抵扣比例不能为空")
    @DecimalMin(value = "0")
    @DecimalMax(value = "100")
    private Double discountPercent;

}
